#include <stdio.h>
void fun(char *s) 
{
    char *p = s;
    char *q = s;
    char t;
    while (*q) 
	{
    	q++;
    }
    q--;  
    while (p < q)
	{
        t = *p;
        *p = *q;
        *q = t;
        p++;
        q--;
    }
}
int main() {
    char s[128];
    gets(s);
    fun(s);
    puts(s);
    return 0;
}
